package com.zy.config;

/**
 * @author 张鑫
 * @date 2020/11/27 21:38
 */
public class RedisKeyConfig {

    //登陆
    public static final String AUTH_TOKEN="zhiying:authtoken:";//后面追加令牌
    public static final String AUTH_PHONE="zhiying:authphone:";//后面追加手机号
    public static final int AUTH_TIME=1800;//有效期

    //记录账号挤掉 Hash类型 feild:存储令牌 value:挤掉信息
    public static final String AUTH_OUT="zhiying:auth:outs";//

    //记录短信注册验证码
    public static final String SMS_RCODE="zhiying:sms:register:";//后面追加手机号
    public static final int SMS_RTIME=600;//有效期

    // 记录语法的信息
    public static final String GRAM_EXPLAIN_ID="zhiying:explain:id";// 后面追加令牌
    public static final String GRAM_QUESTION_ID="zhiying:question:id";// 后面是问题的id
    public static final String GRAM_ANSWER_ID="zhiying:answer:id";// 后面是答案的id

}
